package com.spring.component.test;

import com.spring.component.config.DemoConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext beans
                = new AnnotationConfigApplicationContext("com.spring.component.config");
        DemoConfig demoConfig = beans.getBean(DemoConfig.class);
        demoConfig.print();
    }




}
